package com.lai.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lai.common.utils.PageUtils;
import com.lai.gulimall.ware.entity.WareInfoEntity;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 仓库信息
 *
 * @author laiciqi
 * @email 602469238@qq.com
 * @date 2021-11-07 12:16:23
 */
public interface WareInfoService extends IService<WareInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据收货地址计算运费
     * @param addressId
     * @return
     */
    BigDecimal fare(Long addressId);
}

